package com.yisu.auction.api.core.mapper;

import com.yisu.auction.api.domain.request.BasePage;
import com.yisu.auction.api.domain.request.prizePackage.CancelMineCollectRequest;
import com.yisu.auction.api.domain.request.prizePackage.PersonageCollectRequest;
import com.yisu.auction.api.domain.vo.indexPackageVos.PrizeListVo;
import com.yisu.auction.ewf.entity.PersonageCollect;

import java.util.List;

public interface PersonageCollectMapper {

    int deleteByPrimaryKey(Long id);

    int deleteByPrizeIdAndMemberId(CancelMineCollectRequest cancelMineCollectRequest);

    int insert(PersonageCollect record);

    int insertSelective(PersonageCollect record);

    PersonageCollect selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(PersonageCollect record);

    int updateByPrimaryKey(PersonageCollect record);


    /**
     * author: 黄萧林
     * Business Description：获取我的收藏列表
     * @param basePage 含memberId
     * @return
     */
    List<PrizeListVo> getMineCollectList(BasePage basePage);

    /**
     * author: 赵杰
     * Business Description：通过prizeId和MemberId，判断是否已收藏
     * @param personageCollectRequest
     * @return
     */
    int collectStatus(PersonageCollectRequest personageCollectRequest);

}